package edu.qichen.onlineBlog.blogs.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import edu.qichen.onlineBlog.blogs.dto.BlogUserPageDto;
import edu.qichen.onlineBlog.blogs.pojo.Blog;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BlogMapper extends BaseMapper<Blog> {
    List<BlogUserPageDto> selectMapsPage(IPage<BlogUserPageDto> page, QueryWrapper<BlogUserPageDto> wrapper, long id);

    List<BlogUserPageDto> select(LambdaQueryWrapper<BlogUserPageDto> wrapper, Long id);
}
